package com.example.nkj.imagebutton;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class imagebutton extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_imagebutton);
    }

    public void onButtonClick(View view)
    {
        switch(view.getId())
        {
            case R.id.image_button:
                Toast.makeText(imagebutton.this,"已保存" , Toast.LENGTH_SHORT).show();
            break;
        }
    }
}
